package function;

import dataObject.*;

import java.util.*;

import controller.IOPrinter;
public class ListAllBrandProduct extends Function{
	public ListAllBrandProduct()
	{
		super("List All Brand Product");
	}
	
	@Override
	public void perform(ArrayList<Brand> brandList) {
		IOPrinter printer = IOPrinter.getPrinter();
		printer.printProductFormat();
		for(Brand b:brandList)
		{
			printer.print(b.getName()+" :");
			b.printProductList();
		}
	}
	
}
